package com.gouying.web.feign;

import com.gouying.common.utils.R;
import com.gouying.web.feign.fallback.SeckillFeignServiceFallBackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ly
 */
//@FeignClient(value = "gulimall-seckill", fallback = SeckillFeignServiceFallBackImpl.class)
public interface SeckillFeignService {

    /**
     * 获取秒杀商品信息
     *
     * @param skuId
     * @return
     */
    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);
}
